﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hbrs.Soa.Restclient.Client
{
    class Program
    {
        static void Main()
        {
            //SingletonService
            //SampleItemClient client = new SampleItemClient("RestBasedService");
            //client.GetItem();
            //client.DeleteItem();
            //client.AddItem(new SampleItem() { Value = "Hello World", Value2 = 42 });
            //client.UpdateItem(new SampleItem() { Value = "Some new value", Value2 = 4711 });

            //CollectionService
            SampleItemClient client = new SampleItemClient("RestBasedService");
            IDictionary<string, SampleItem> items = client.GetItems();
            SampleItem item = client.GetItem(items.Keys.First());
            client.AddItem(new SampleItem() { Value = "Hello World", Value2 = 42 });
            //client.DeleteItem(items.Keys.First());
            items = client.GetItems();
        }


    }
}
